package com.eastfair.pay.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.pay.enums.InvoiceApplyBusinessTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * DTO
 * 发票申请
 * </p>
 *
 * @author gj
 * @since 2022-06-08
 */
@Data
@ApiModel(value = "InvoiceApplyDTO", description = "发票申请")
public class InvoiceApplyDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 合同id,结算单id
     */
    @NotNull(message = "业务类型ID不能为空")
    @ApiModelProperty(value = "合同id,结算单id")
    private Long businessId;
    /**
     * 合同,结算单 枚举
     */
    @ApiModelProperty(value = "结算类型#{H:合同;J:结算单;}")
    private InvoiceApplyBusinessTypeEnum businessType;

    /**
     * 发票抬头
     */
    @NotBlank(message = "发票抬头不能为空")
    @ApiModelProperty(value = "发票抬头")
    @Size(max = 255, message = "发票抬头长度不能超过255")
    private String invoiceTitle;
    /**
     * 税号
     */
    @NotBlank(message = "税号不能为空")
    @ApiModelProperty(value = "税号")
    @Size(max = 255, message = "税号长度不能超过255")
    private String invoiceDutyParagraph;
    /**
     * 费用类型（数据字典）
     */
    @NotBlank(message = "费用类型不能为空")
    @ApiModelProperty(value = "费用类型（数据字典）")
    @Size(max = 255, message = "费用类型（数据字典）长度不能超过255")
    private String costType;
    /**
     * 开票单位地址
     */
    @NotBlank(message = "单位地址不能为空")
    @ApiModelProperty(value = "开票单位地址")
    @Size(max = 255, message = "开票单位地址长度不能超过255")
    private String companyAddress;
    /**
     * 开票单位电话
     */
    @NotBlank(message = "单位电话不能为空")
    @ApiModelProperty(value = "开票单位电话")
    @Size(max = 255, message = "开票单位电话长度不能超过255")
    private String companyTel;
    /**
     * 对方账号
     */
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "对方账号")
    @Size(max = 255, message = "对方账号长度不能超过255")
    private String bankAccountNum;
    /**
     * 对方开户行
     */
    @NotBlank(message = "开户行不能为空")
    @ApiModelProperty(value = "对方开户行")
    @Size(max = 255, message = "对方开户行长度不能超过255")
    private String bankName;
    /**
     * 可开票金额
     */
    @NotNull(message = "可开票金额不为空")
    @ApiModelProperty(value = "可开票金额")
    @Excel(name = "可开票金额")
    private BigDecimal invoiceAmount;

    /**
     * 发票类型（数据字典)
     */
    @ApiModelProperty(value = "发票类型（数据字典)")
    @Size(max = 255, message = "发票类型（数据字典)长度不能超过255")
    @NotBlank(message = "发票类型不能为空")
    private String invoiceType;
    /**
     * 收件人
     */

    @ApiModelProperty(value = "收件人")
    @Size(max = 255, message = "收件人长度不能超过255")
    private String addressee;
    /**
     * 收件人地址
     */

    @ApiModelProperty(value = "收件人地址")
    @Size(max = 255, message = "收件人地址长度不能超过255")
    private String toAddress;
    /**
     * 收件人手机号
     */
    @ApiModelProperty(value = "收件人手机号")
    @Size(max = 255, message = "收件人手机号长度不能超过255")
    private String mobile;
    /**
     * 收件人邮箱
     */
    @Email(message = "邮箱格式有误")
    @ApiModelProperty(value = "收件人邮箱")
    @Size(max = 255, message = "收件人邮箱长度不能超过255")
    private String mailbox;

    /**
     * 开票状态 数据字典
     */
    @ApiModelProperty(value = "开票状态 数据字典")
    private String invoiceState;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    private Long cutomerId;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    private String cutomerName;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;

    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    private String exhibitionName;

    /**
     * 回调服务名称
     */
    @ApiModelProperty(value = "回调服务名称")
    private String callbackServiceName;

    /**
     *回调接口地址
     */
    @ApiModelProperty(value = "回调接口地址")
    private String callbakcApi;


}
